package one.stand.controller;

import one.stand.model.ResultModel;
import one.stand.response.InitialResponse;
import one.stand.service.InitialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: QIK
 * @CreateDate: 2019/6/14 11:38
 */
@RestController()
@RequestMapping("home")
public class HomeController {
    @Autowired
    InitialService initialService;

    /**
     * 获取初始数据
     * @return
     */
    @PostMapping("initial")
    public ResultModel<InitialResponse> initial(){
        return initialService.initial();
    }

}
